import javax.swing.*;

/**
 * @ClassName LAFSearch
 * @Description 查询当前使用和所有可用的 LAF
 * @Author Li
 * @Date 2022/9/12 2:44
 * @ModifyDate 2022/9/12 2:44
 * @Version 1.0
 */
public class LAFSearch {
    public static void main(String[] args) {
        System.out.println("当前正在使用的 LAF：");
        System.out.println(UIManager.getLookAndFeel().getName());
        System.out.println("当前可用的所有 LAF：");
        for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
            System.out.println(info.getName() + " ---> " + info.getClassName());
        }
    }
}
